@echo off
SET PATH="%windir%\ADAM\";%PATH%
echo Batch file to create an Adam Instance
Adaminstall.exe /answer:IdentityStore_InstanceAnswer.txt

call dsmgmt "ds behavior" connections "connect to server localhost:61000" quit "allow passwd op on unsecured connection" quit quit

echo Configurating ADAM instance
call IdentityStore_AdamInstanceConfigurator /O=Extranet /61000 /saasy